home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Hráč 2004 August
/
Hrac_72_2004-08_dvd.iso
/
dema
/
Rapid Gun
/
rg_setup.exe
/
common
/
error.fx
< prev
next >
Wrap
Text File
|
2004-04-19
|
2KB
|
78 lines
// LF2 Engine
// (C) 2002-3 7FX
//---------------------------------------------------------------------------
#include "basic_vs.fxh"
//---------------------------------------------------------------------------
// If effect cannot be loaded, this effect is used instead, it is simple constant color
//---------------------------------------------------------------------------
// Common parameters
// Desc
string desc : Description = "Error shader, pouzije se, pokud dany shader nelze z nejakeho duvodu nacist, \
zobrazuje objekt konstantni barvou.";
// vertex format
string vf : VertexFormat = "POSITION";
// Shader type error
string type : Type = "error";
//---------------------------------------------------------------------------
// Constant color
static const float4 cColor = { 0.0f, 0.9f, 0.8f, 1.f };
// Matrices for fixed function technique
const matrix cMtxW : World;
//---------------------------------------------------------------------------
// Techniques
technique vs11_ps0
<
// streams for technique
string stream1 = "POSITION";
>
{
pass p0
<
// stream mapping
string streammap = "stream1";
>
{
VertexShader = <cBasicVS>; // use shared basic vertex shader
TextureFactor = <cColor>;
ColorOp[0] = SelectArg1;
ColorArg1[0] = TFactor;
AlphaOp[0] = SelectArg1;
AlphaArg1[0] = TFactor;
}
}
//---------------------------------------------------------------------------
technique vs0_ps0
<
// streams for technique
string stream1 = "POSITION";
>
{
pass p0
<
// stream mapping
string streammap = "stream1";
>
{
// matrices
WorldTransform[0] = <cMtxW>;
TextureFactor = <cColor>;
ColorOp[0] = SelectArg1;
ColorArg1[0] = TFactor;
AlphaOp[0] = SelectArg1;
AlphaArg1[0] = TFactor;
}
}
//---------------------------------------------------------------------------
//---------------------------------------------------------------------------
/*
* $Header: $
*/
//---------------------------------------------------------------------------